/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
package com.losenote.core;

import com.losenote.model.FindNote;
import com.losenote.model.OperateContext;
import com.losenote.service.req.FindNodePubReq;

/**
 * 寻物启示组件
 * 
 * @author jingyu.dan
 * @version $Id: FindNoteComponent.java, v 0.1 2013-8-28 下午07:23:56 jingyu.dan Exp $
 */
public interface FindNoteComponent {

    /**
     * 发布一篇招领启示
     * 
     * @return
     */
    public int publishNote(FindNodePubReq findNodePubReq, OperateContext operateContext);

    /**
     * 通过id寻物启示
     * 
     * @param noteId
     * @return
     */
    public FindNote queryById(int noteId);

}
